﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace _14_缓存.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class 服务器缓存Controller : ControllerBase
    {
        [ResponseCache(Duration =20)]
        [HttpGet]
        public DateTime getTime()
        {
            return DateTime.Now;
        }
    }
}
